using System;
using Lottery.App.Model;
using System.Collections.Generic;

namespace Lottery.App.DAL
{
    public class N4Dao : ResultDao<N4Info>
    {
        protected override IList<N4Info> GetItems(RecordInfo record)
        {
            List<string> array = Utility.Utils.Get8P4(record.ASC_Result);

            string hql = "from N4Info where Value in (:val)";

            return Session.CreateQuery(hql)
                .SetParameterList("val", array)
                .List<N4Info>();
        }


    }
}